var t = getApp();

Component({
    properties: {
        src: {
            type: String,
            value: "/images/avatar.png"
        },
        userAccessToken: {
            type: String,
            value: ""
        }
    },
    data: {
        vip: 0
    },
    methods: {
        bindAvatarTap: function() {
            this.data.userAccessToken && t.util.navToUserHome(this.data.userAccessToken);
        }
    },
    ready: function() {
        this.data.src && -1 != this.data.src.indexOf("vip") && this.setData({
            vip: 1
        });
    }
});